export default ({ app }, inject) => {
  inject('log', (...args) => {
    const datetime = new Date().toLocaleString('zh-CN', {
      year: 'numeric',
      month: '2-digit',
      day: '2-digit',
      hour: '2-digit',
      minute: '2-digit',
      second: '2-digit',
    })
    console.info.apply(null, [`[CLIENT ${datetime}]`, ...args])
  })
}
